//package com.glut.forum.config;
//
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import springfox.documentation.spring.web.plugins.Docket;
//import springfox.documentation.swagger2.annotations.EnableSwagger2;
//
//import static springfox.documentation.spi.DocumentationType.SWAGGER_2;
//
///**
// * @author milo
// * @since 2021/9/2 下午8:04
// * @version 1.0
// */
//@Configuration
//@EnableSwagger2
//public class SwaggerConfig {
//
//    @Value("${swagger.enable:true}")
//    private boolean enableSwagger;
//
//    @Bean
//    public Docket customImplementation() {
//        return new Docket(SWAGGER_2).enable(enableSwagger);
//    }
//}
